package com.mall.user.domain.model;

public record Jingle(String jingle) {
    public Jingle {
        //商品买点长度为0到140个字符
        if (jingle.length() > 140) {
            throw new IllegalArgumentException("商品买点长度为0到140个字符");
        }
    }

    public static Jingle of(String jingle) {
        return new Jingle(jingle);
    }
}
